package com.ruoyi.system.utils;

public class PageInfo {
    private int page;
    private int pagesize;
    private int pages;
    private long total;
    private long start;
    public PageInfo(){
    }

    public PageInfo(int pageIndex, int pageSize){
        this.page=pageIndex;
        this.pagesize=pageSize;
        this.start=(pageIndex-1)*pageSize;
    }

    public void  setStart(long start){
        this.start=start;
    }
    public long getStart(){
        return this.start;
    }

    public void setPage(int page){this.page=page;}
    public  int getPage(){
        return this.page;
    }
    public void setPagesize(int pagesize){this.pagesize=pagesize;}
    public int getPagesize(){return this.pagesize;}

    public void setPages(int pages){this.pages=pages;}
    public int getPages(){return this.pages;}

    public void setTotal(long total){this.total=total;}
    public long getTotal(){return this.total;}

    public long getOffset() {
        return offset;
    }

    public void setOffset(long offset) {
        this.offset = offset;
    }

    private long offset;

}
